home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
comm
/
misc
/
MiamiLog.lha
/
MiamiLog
/
MiamiLog.readme
< prev
next >
Wrap
Text File
|
1998-03-01
|
2KB
|
67 lines
Short: nice&simple Miami phone log parser w/src
Author: thorgal@amiga.com.pl
Uploader: thorgal@amiga.com.pl
Type: comm/misc
Some time ago I hacked this simple flex parser to calculate my phone-bill
value from the logfile generated by Miami. A few of my friends liked it
and seem to use it frequently, so I decided to release it in the hope that
there may be more persons preferring simplicity over baroqueness of other
log-analyzers. As for the source, let's say it's under GPL.
Usage:
MiamiLog <Miami:phone.log
and the output looks like this:
---------------------------------------------------------------------
day 01: #############
day 02: ########
day 03: #############################
day 04: ###############
day 05: ############
day 06: ###################
day 07: ############
day 08: ########
day 09: #############
day 10: #######
day 11: ###############################
day 12: ###########
day 13: ###
day 14: #######
day 15: ######################
day 16: ###
day 17: #######
day 18: ####################
day 19: ####
day 20: ###
day 21: ##########
day 22: ######
day 23: ####
day 24: #################
day 25: ####################
day 26: ########################
day 27: ###
Last connection: 3 pulses (0.66 zl)
Sum: 332 pulses
Price: 73.04 zl
Daily: 2.71 zl
WARNING!!!
There was 1 crash so the actual pulse count may be higher!
---------------------------------------------------------------------
As you can see, it calculates the cost in "zlotys" using current rates for
telephone connection in Poland. Modifying it to support other
rates/countries is trivial and is left as an exercise for the reader.
And BTW - MiamiLog only understands logfiles containing entries from ONE
month. Yes, I know, but remember - I am not charging money for this stuff. :)
Have fun,
Milek